home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 21
/
CU Amiga Magazine's Super CD-ROM 21 (1998)(EMAP Images)(GB)[!][issue 1998-04].iso
/
CUCD
/
CDROM
/
RexxCD
/
rexx
/
tracklist.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1996-06-28
|
950b
|
43 lines
/*
Name : tracklist.rexx
Created : 25/06/96
Last change : 27/06/96
Programmer : Urban Lindeskog
Organization : ProNotion SWDG
List the tracks on the CD.
*/
options RESULTS
address REXXCD
GETATTR DISC STEM DISC
Say left('', 80, '_')
str='Album title: 'DISC.TITLE' Total length: 'DISC.LENGTH
Say '| 'left(str, 76)' |'
Say '|'left('', 78)'|'
GETATTR TRACK STEM TRACK
numlyr=0
Say '| No._Artist/Group______________Title________________________________Length____|'
do i=1 to TRACK.COUNT
'GETATTR TRACK NAME 'i' STEM TRACK'
if i = TRACK.CURRENT then str='*'; else str=' '
if TRACK.LYRICS = 1 then do
lyr='L'
numlyr=numlyr+1
end
else lyr=' '
Say '| 'str''RIGHT(i, 2, '0')':'LEFT(TRACK.ARTIST, 25)' 'LEFT(TRACK.TITLE, 36)' ('TRACK.LENGTH') 'lyr' |'
end
Say '|'left('', 78)'|'
if numlyr>1 then str='s '; else str=' '
if numlyr>0 then do
str=''numlyr' track'str'have lyrics.'
say '| 'left(str, 76)' |'
end
Say left('', 80, '¯')